﻿{extend name="index:base" /}
{block name="main"}
<form class="layui-form" action="/myitem/public/index.php/Index/index/submitclear" method="post">
    <div class="layui-form-item" style="margin-top: 100px;">
        <label class="layui-form-label">表名</label>
        <div class="layui-input-inline">
            <input type="text" name="table" required  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">数据表名</div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
{/block}
{block name="bottom"}
{/block}